<?php $data['id'] = "doc_form" ?>
<?= form_open_multipart('mis/saveDocument', $data); ?>
<input type="hidden" name="type" value="<?= $type;?>" />
<table>
        <tr class="lighter"><td class="half">Description</td><td><input type="text" class="wide" name="descr" value="<?php echo set_value('descr'); ?>" /></td> </tr>
    <tr class="darker"><td>Document</td><td><input type="file" class="wide"  name="userfile" /></td> </tr>
    <tr><td colspan="2" style="text-align: right">
            <input type="submit" value="Submit" />
            <input type="button" value="Cancel" onclick="hide('#new_doc')"/>
        </td></tr>
</table>
</form>